
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type WechatQrcodeCateRequest struct {

	CateName string `json:"cate_name" form:"cate_name"`

	AddTime string `json:"add_time" form:"add_time"`

	IsDel string `json:"is_del" form:"is_del"`

}

func (r *WechatQrcodeCateRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *WechatQrcodeCateRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"cate_name": "required",

		"add_time": "required",

		"is_del": "required",

	}
}

func (r *WechatQrcodeCateRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *WechatQrcodeCateRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *WechatQrcodeCateRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
